﻿using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;

namespace OgilvyOne.BLL
{
    public class BrandOtherBll
    {
        /// <summary>
        /// 全部关联信息列表
        /// </summary>
        /// <returns></returns>
        public IList GetList(string where)
        {
            return BrandOtherFactory.create().GetList(where);
        }
        /// <summary>
        /// 添加关联信息
        /// </summary>
        /// <returns></returns>
        public int Add(BrandOtherModel setDic)
        {
            return BrandOtherFactory.create().Add(setDic);
        }
        /// <summary>
        /// 删除一条关联信息
        /// </summary>
        /// <returns></returns>
        public bool Delete(int id)
        {
            return BrandOtherFactory.create().Delete(id);
        }
        /// <summary>
        /// 修改一条关联信息
        /// </summary>
        /// <returns></returns>
        public int Update(BrandOtherModel updDic)
        {
            return BrandOtherFactory.create().Update(updDic);
        }
        /// <summary>
        /// 关联信息
        /// </summary>
        /// <returns></returns>
        public BrandOtherModel Get(int id)
        {
            return BrandOtherFactory.create().Get(id);
        }
    }
}
